package com.gticket.customerbackend.service.impl;

import com.gticket.customerbackend.mapper.PaymentMapper;
import com.gticket.customerbackend.pojo.Payment;
import com.gticket.customerbackend.service.PaymentService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
@Data
public class PaymentServiceIpml implements PaymentService {
    @Autowired
    private PaymentMapper paymentMapper;
    @Override
    public List<Payment> listPayment(Payment payment) {
        return paymentMapper.listPayment(payment);
    }

    @Override
    public Payment getPaymentById(Payment payment) {
        return paymentMapper.getPaymentById(payment);
    }

    @Override
    public void updatePayment(Payment payment) {
        paymentMapper.updatePayment(payment);
    }

    @Override
    public void insertPayment(Payment payment) {
        paymentMapper.insertPayment(payment);
    }


}
